]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Grab on the stage
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 17 Nov 2021 23:37:26 +0000 (00:37 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 29 Jan 2022 00:16:29 +0000 (01:16 +0100)
This is more in line with the places where we want events to be
handled (i.e. all). So make the overview take a grab on the
stage itself.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

js/ui/overview.js

index 87bf835b03fd49dd1fad8eea71c85e893cbf4e05..2312bb10d0cba1ebfd5b8e9528843a0ab4568bdf 100644 (file)
@@ -488,7 +488,7 @@ var Overview = class {
             let shouldBeModal = !this._inXdndDrag;
             if (shouldBeModal && !this._modal) {
                 let actionMode = Shell.ActionMode.OVERVIEW;
-                if (Main.pushModal(this._overview, { actionMode })) {
+                if (Main.pushModal(global.stage, { actionMode })) {
                     this._modal = true;
                 } else {
                     this.hide();
@@ -498,7 +498,7 @@ var Overview = class {
         } else {
             // eslint-disable-next-line no-lonely-if
             if (this._modal) {
-                Main.popModal(this._overview);
+                Main.popModal(global.stage);
                 this._modal = false;
             }
         }